<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>websocket</title>
	<script src="./socket.io.min.js"></script>
</head>
<body>
	<button>发送socket请求</button>
</body>
<script>
    const ws = io.connect("/");
    ws.on("two",function(one,two,three){
        console.log("接收到服务端推送的消息",one,two,three)
    })
    document.querySelector("button").onclick = function(){
        console.log(1111111)
	    ws.emit("one",1,2,3,4);
    }
</script>
</html>